/*
 * @Author:
 * @Date: 2023-02-25 11:20:46
 * @LastEditors:
 * @LastEditTime: 2023-08-28 16:42:49
 * @FilePath: \immoka-admin\src\api\mokaCrystal\index.js
 * @Description:
 *
 * Copyright (c) 2023 by ${git_name} , All Rights Reserved.
 */
import request from '@/utils/request';

// 爵位列表
export function adminRoyalList(query) {
  return request({
    url: `/admin/royal`,
    method: 'get',
    params: query
  });
}
// 新增、编辑
export function royalLevelSave(query) {
  return request({
    url: `/admin/royal/level/save`,
    method: 'post',
    data: query
  });
}

// 特权列表
export function adminPrivilegeList() {
  return request({
    url: `/admin/royal/privilege`,
    method: 'get',
  });
}
// 特权新增、编辑
export function PrivilegeSave(query) {
  return request({
    url: `/admin/royal/privilege/save`,
    method: 'post',
    data: query
  });
}
// ?id=16
export function PrivilegeDelete(query) {
  return request({
    url: `/admin/royal/privilege`,
    method: 'delete',
    data: query
  });
}

// 爵位用户列表
export function adminRoyalUserList(query) {
  return request({
    url: `/admin/royal/user`,
    method: 'get',
    params: query
  });
}
// 导出爵位用户列表
export function adminRoyalUserExport(query) {
  return request({
    url: `/admin/royal/user/export`,
    method: 'get',
    params: query
  });
}
// 批量编辑
export function royalLevelEditMore(query) {
  return request({
    url: `/admin/royal/level/edit/more`,
    method: 'post',
    data: query
  });
}

// 特权高级编辑
export function royalLevelEditHigh(query) {
  return request({
    url: `/admin/royal/level/edit/high`,
    method: 'post',
    data: query
  });
}
